<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${ctx!}/admin/message/list" method="post">
	<input type="hidden" name="pageNum" value="${datas.pageNumber!}" />
	<input type="hidden" name="numPerPage" value="${datas.pageSize!}" />
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td class="nowrap">
						添加日期：从 <input name="startTime" class="date textInput readonly valid" type="text" readonly="true" />
						- <input name="endTime" class="date textInput readonly valid" type="text" readonly="true" />
				</td>
				<td>
					状态：<select name="message.status" >
								<option value="">选择状态</option>
								<option value="0" <#if message.status?? && message.status = '0'>selected="selected"</#if> >未回复</option>
						   		<option value="1" <#if message.status?? && message.status = '1'>selected="selected"</#if> >已回复</option> 
								<option value="2" <#if message.status?? && message.status = '2'>selected="selected"</#if> >新回复</option>
						   </select>
				</td>
				<td>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="delete" href="${ctx!}/admin/message/deletes" target="selectedTodo" rel="ids" title="确认删除？"><span>批量删除</span></a></li>
		</ul>
	</div>
	<table class="table" layoutH="112">
		<thead>
			<tr>
				<th width="40" align="center"><input type="checkbox" class="checkboxCtrl" group="ids" /></th>
				<th width="40" align="center">序号</th>
				<th width="150" align="center">标题</th>
				<th width="100" align="center">姓名</th>
				<th width="150" align="center">邮箱</th>
				<th align="center">内容</th>
				<th width="150" align="center">创建时间</th>
				<th width="80" align="center">状态</th>
				<th width="50" align="center">操作</th>
			</tr>
		</thead>
		<tbody>
			<#list datas.list as s>
			<tr>
				<td align="center"><input type="checkbox" name="ids" value="${s.id}" /></td>
				<td align="center">${s_index+(datas.pageSize*(datas.pageNumber-1))+1}</td>
				<td>${s.title!}</td>
				<td>${s.name!}</td>
				<td>${s.email!}</td>
				<td>${s.content!}</td>
				<td>${s.create_time!}</td>
				<td>
					<#if s.status! == '0'><span style="color: red;">未回复</span><#elseif s.status! == '1'><span style="color: green;">已回复</span><#else><span style="color: blue;">有新回复</span></#if>
				</td>
				<td>
					<#if !s.pid??>
						<a href="${ctx!}/admin/message/toReplayPage/${s.id}" rel="messageReply" target="navTab" title="回复  ${s.title!} 主题">回复</a>
					</#if>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20"<#if datas.pageSize == 20> selected</#if>>20</option>
				<option value="50"<#if datas.pageSize == 50> selected</#if>>50</option>
				<option value="100"<#if datas.pageSize == 100> selected</#if>>100</option>
				<option value="200"<#if datas.pageSize == 200> selected</#if>>200</option>
			</select> <span>条，共<font style="color:red;font-weight:bold;">${datas.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${datas.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${datas.totalRow!}" numPerPage="${datas.pageSize!}" pageNumShown="10" currentPage="${datas.pageNumber!}"></div>
	</div>
</div>
